from requestium import Session, Keys
import time

s = Session('C:/apps/chromedriver/chromedriver',
            browser='chrome',
            default_timeout=15)


s.driver.get("http://www.taobao.com")
input_str = s.driver.find_element_by_id('q')
input_str.send_keys("ipad")
time.sleep(1)
input_str.clear()
input_str.send_keys("MakBook pro")
btn = s.driver.find_element_by_class_name('btn-search')
btn.click()




